package MatchesDemo;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String line="abc123def732iow";
        String []date =line.split("[a-z]");
        System.out.println(Arrays.toString(date));
         line="14780.14979.91472..........";
         date=line.split("\\.");
        System.out.println(Arrays.toString(date));
        System.out.println(date.length);

    }
}
